package com

import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import com._
class TestJujin extends Simulation {

    val httpProtocol = http
        .baseURL("http://ns.jujinziben.com")
        .inferHtmlResources(BlackList(""".*\.css""", """.*\.js""", """.*\.ico"""), WhiteList())
        .acceptHeader("*/*")
        .acceptEncodingHeader("gzip, deflate")
        .acceptLanguageHeader("zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2")
        .userAgentHeader("Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0")

    val player = scenario("TestJujin").exec(Login.login,Chongzhi.chongzhi)
        
    setUp(player.inject(rampUsers(100) over (10 seconds))).protocols(httpProtocol)
}